import Vue from 'vue'
import App from './App.vue'
import router from './router'// 路由规则
import store from './store'// vuex
import 'amfe-flexible'// 自动适配
import './directives'// 自定义指令
import { Badge, Popup, Dialog, ActionSheet, PullRefresh, List, Cell, Col, Row, Tab, Tabs, Icon, Tabbar, TabbarItem, Button, Field, Form, NavBar } from 'vant'

Vue.use(Badge)
Vue.use(Popup)
Vue.use(Dialog)
Vue.use(ActionSheet)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Cell)
Vue.use(Col)
Vue.use(Row)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Button)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
